<!DOCTYPE html>
<html lang="cn">
    <head>
        <meta charset="utf-8">
        <title>网站后台管理</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="/static/admin/css/bootstrap.min.css" rel="stylesheet">
        <link href="/static/admin/css/bootstrap-responsive.min.css" rel="stylesheet">
        <link href="/static/admin/css/site.css" rel="stylesheet">
        <!--[if lt IE 9]><script src="js/html5.js"></script><![endif]-->
    </head>
    <body>
        <div class="container">
            <!-- 页头开始 -->
            <div class="navbar">
                <div class="navbar-inner">
                    <div class="container">
                        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a class="brand" href="/static/admin/#">网站后台管理</a>
                        <div class="nav-collapse">
                            <ul class="nav">
                                <li class="active">
                                    <a href="/static/admin/index.html">首页</a>
                                </li>
                                <li>
                                    <a href="/static/admin/settings.htm">在线设置</a>
                                </li>
                                <li>
                                    <a href="/static/admin/help.htm">帮助</a>
                                </li>
                                <li class="dropdown">
                                    <a href="/static/admin/help.htm" class="dropdown-toggle" data-toggle="dropdown">更多 <b class="caret"></b></a>
                                    <ul class="dropdown-menu">
                                        <li>
                                            <a href="/static/admin/help.htm">Introduction Tour</a>
                                        </li>
                                        <li>
                                            <a href="/static/admin/help.htm">Project Organisation</a>
                                        </li>
                                        <li>
                                            <a href="/static/admin/help.htm">Task Assignment</a>
                                        </li>
                                        <li>
                                            <a href="/static/admin/help.htm">Access Permissions</a>
                                        </li>
                                        <li class="divider">
                                        </li>
                                        <li class="nav-header">
                                            Files
                                        </li>
                                        <li>
                                            <a href="/static/admin/help.htm">How to upload multiple files</a>
                                        </li>
                                        <li>
                                            <a href="/static/admin/help.htm">Using file version</a>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                            <form class="navbar-search pull-left" action="">
                                <input type="text" class="search-query span2" placeholder="Search" />
                            </form>
                            <ul class="nav pull-right">
                                <li>
                                    <a href="/static/admin/profile.htm">@管理员</a>
                                </li>
                                <li>
                                    <a href="/static/admin/login.htm">退出</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div><!-- 页头结束-->
            
            
            <div class="row">
                <div class="span3">
                    <!-- 侧边导航开始 -->
                    <div class="well" style="padding: 8px 0;">
                        <ul class="nav nav-list">
                            <li class="nav-header">
                                导航栏
                            </li>

                            <li>
                                <a href="{{ url_for('admin.index') }}"><i class=" icon-home"></i> 首页</a>
                            </li>
                            
                            <li class="nav-header">
                                会员管理
                            </li>

                            <li>
                                <a href="{{ url_for('admin.userlist') }}"><i class="icon-folder-open"></i> 会员列表</a>
                            </li>

                            <li class="nav-header">
                                标签管理
                            </li>
                            <li>
                                <a href="{{ url_for('admin.blogslist') }}"><i class="icon-folder-open"></i> 标签列表</a>
                            </li>

                            <li class="nav-header">
                                博文管理
                            </li>
                            <li>
                                <a href="{{ url_for('admin.tagslist') }}"><i class="icon-folder-open"></i> 文章列表</a>
                            </li>

                            <li class="nav-header">
                                评论管理
                            </li>
                            <li>
                                <a href="{{ url_for('admin.commentslist') }}"><i class="icon-folder-open"></i> 评论列表</a>
                            </li>
                        </ul>
                    </div><!-- 侧边导航结束 -->
                </div>

                {% block con %}
                <div class="span9">
                    <!-- 主体开始 -->
                    <div class="hero-unit">
                        <h1>
                            Welcome!
                        </h1>
                        <p>
                            To get the most out of Akira start with our 3 minute tour.
                        </p>
                        <p>
                            <a href="/static/admin/help.htm" class="btn btn-primary btn-large">Start Tour</a> <a class="btn btn-large">No Thanks</a>
                        </p>
                    </div>
                    <div class="well summary">
                        <ul>
                            <li>
                                <a href="/static/admin/#"><span class="count">{{ usnum }}</span> 注册用户</a>
                            </li>
                            <li>
                                <a href="/static/admin/#"><span class="count">{{ bsnum }}</span> 博文数量</a>
                            </li>
                            <li>
                                <a href="/static/admin/#"><span class="count">{{ csnum }}</span> 评论量</a>
                            </li>
                            <li class="last">
                                <a href="/static/admin/#"><span class="count">{{ tsnum }}</span> 标签</a>
                            </li>
                        </ul>
                    </div>
                  
                    <ul class="pager">
                        <li class="next">
                            <a href="/static/admin/activity.htm">More &rarr;</a>
                        </li>
                    </ul>
                    <!-- 主体结束 -->
                </div>
                {% endblock %}
            </div>
        </div>
        <script src="/static/admin/js/jquery.min.js"></script>
        <script src="/static/admin/js/bootstrap.min.js"></script>
        <script src="/static/admin/js/site.js"></script>

        <script type="text/javascript">
            // 获取当前请求的path  url
            var url = '{{ request.path }}'
            $('.nav-list a[href="'+url+'"]').parent().addClass('active')

        </script>

        {% block js %}

        {% endblock %}
    </body>
</html>